PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Control Manager >

Programming With the Mac OS 8.5 Control Manager


SetUpControlTextColor

Prepares a control to be drawn with a text color consistent with that of any controls in which it is embedded and with the current theme.

pascal OSErr SetUpControlTextColor (
                     ControlHandle inControl,
                     SInt16 inDepth,
                     Boolean inIsColorDevice);
inControl
A value of type ControlHandle . Pass a handle to the control whose text color is to be set.
inDepth
A signed 16-bit integer. Pass a value specifying the bit depth (in pixels) of the current graphics port.
inIsColorDevice
A value of type Boolean . Set to true to indicate that you are drawing on a color device. Set to false for a monochrome device.
function result
A result code. See Result Codes for the Mac OS 8.5 Control Manager .

DISCUSSION

Your control definition function may use the SetUpControlTextColor function inside a DeviceLoop drawing procedure to set a control's text color to coordinate with the current theme. Applications do not typically need to use this function.


VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)